import {useLocation,useSearchParams} from 'react-router-dom'
import qs from 'qs'
function C(){
    //获取传递的问号参数信息
    // console.log(qs.parse(useLocation().search.substring(1)));

    // let usp = new URLSearchParams(useLocation().search)
    // console.log(usp.get('id'),usp.get('name'));

    /**
     * 获取隐式传参的值
     */
    // let location = useLocation()
    // console.log(location);

    // let array = useSearchParams()
    // console.log(array[0].get('age'));
    console.log(useLocation());

    return <div>
        C组件
    </div>
}
export default C